Skip to content

Conversation

@gbojo
Copy link

@gbojo gbojo commented Aug 7, 2025

Summary

This PR adds the /posts/new page with a form to create a new post. The form submits to the backend API and handles both successful and failed submissions.

Features

  • Form for Title and Description
  • POST request to API endpoint (/posts)
  • Redirects to /posts/[slug] if successful
  • Displays validation errors if title or description is empty

Notes

  • Backend expects "Title" not to be blank and "Description" to be meaningful
  • Slug is generated from the title on the backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant